%
% Author: Vasyl Mykhalchuk
%
function [ name ] = getExportFileName( outDir, fileName, flag )
switch flag
    case exportFileType.kSFMin
        fileName = strcat(strcat(fileName, 'SF_min_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kSFMax
        fileName = strcat(strcat(fileName, 'SF_max_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kSFMean
        fileName = strcat(strcat(fileName, 'SF_mean_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kFPMin
        fileName = strcat(strcat(fileName, '_FP_min_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kFPMax
        fileName = strcat(strcat(fileName, '_FP_max_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kFPMean
        fileName = strcat(strcat(fileName, '_FP_mean_'), datestr(now, '_mm-dd_HH-MM') );     
    case exportFileType.kHSF
        fileName = strcat(strcat(fileName, '_SF_H_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kFPh
        fileName = strcat(strcat(fileName, '_FP_H_'), datestr(now, '_mm-dd_HH-MM') );
        
    case exportFileType.kDataFP
        fileName = strcat(strcat(fileName, '_FP_DATA_'), datestr(now, '_mm-dd_HH-MM') );
    case exportFileType.kDataFPH
        fileName = strcat(strcat(fileName, '_FP_H_DATA_'), datestr(now, '_mm-dd_HH-MM') );
end%switch

if ( (flag == exportFileType.kDataFP) || (flag == exportFileType.kDataFPH ) )
    fileName = strcat(fileName, '.txt');
else
    fileName = strcat(fileName, '.ply');
end%if
name = strcat(outDir, fileName);

end%function

